package com.edu.entity;

public class Articles {
	private int  articleId;
	private String articleTitle;
	private Users  users;
	private String articleContent;
	private String articleDate;
	private Types types;
	private String articleVoice;
	private int articleRead;
	private int articleStatus;
	private String   delTime;
	private int  adminId;
	public int getArticleId() {
		return articleId;
	}
	public void setArticleId(int articleId) {
		this.articleId = articleId;
	}
	public String getArticleTitle() {
		return articleTitle;
	}
	public void setArticleTitle(String articleTitle) {
		this.articleTitle = articleTitle;
	}
	public Users getUsers() {
		return users;
	}
	public void setUsers(Users users) {
		this.users = users;
	}
	public String getArticleContent() {
		return articleContent;
	}
	public void setArticleContent(String articleContent) {
		this.articleContent = articleContent;
	}
	public String getArticleDate() {
		return articleDate;
	}
	public void setArticleDate(String articleDate) {
		this.articleDate = articleDate;
	}
	public Types getTypes() {
		return types;
	}
	public void setTypes(Types types) {
		this.types = types;
	}
	public String getArticleVoice() {
		return articleVoice;
	}
	public void setArticleVoice(String articleVoice) {
		this.articleVoice = articleVoice;
	}

	public int getArticleRead() {
		return articleRead;
	}
	public void setArticleRead(int articleRead) {
		this.articleRead = articleRead;
	}
	public int getArticleStatus() {
		return articleStatus;
	}
	public void setArticleStatus(int articleStatus) {
		this.articleStatus = articleStatus;
	}
	public String getDelTime() {
		return delTime;
	}
	public void setDelTime(String delTime) {
		this.delTime = delTime;
	}
	public int getAdminId() {
		return adminId;
	}
	public void setAdminId(int adminId) {
		this.adminId = adminId;
	}
	
	
	public Articles(int articleId, String articleTitle, Users users, String articleContent, String articleDate,
			Types types, String articleVoice , int articleRead, int articleStatus, String delTime,
			int adminId) {
		super();
		this.articleId = articleId;
		this.articleTitle = articleTitle;
		this.users = users;
		this.articleContent = articleContent;
		this.articleDate = articleDate;
		this.types = types;
		this.articleVoice = articleVoice;
		this.articleRead = articleRead;
		this.articleStatus = articleStatus;
		this.delTime = delTime;
		this.adminId = adminId;
	}
	
	public Articles(int articleId, String articleTitle, String articleContent, String articleDate,
			String articleVoice) {
		super();
		this.articleId = articleId;
		this.articleTitle = articleTitle;
		this.articleContent = articleContent;
		this.articleDate = articleDate;
		this.articleVoice = articleVoice;
	}
	
	public Articles(String articleTitle, Users users, String articleContent, Types types) {
		super();
		this.articleTitle = articleTitle;
		this.users = users;
		this.articleContent = articleContent;
		this.types = types;
	}
	@Override
	public String toString() {
		return "Articles [articleId=" + articleId + ", articleTitle=" + articleTitle + ", users=" + users.getUserAccount()
				+ ", articleContent=" + articleContent + ", articleDate=" + articleDate + ", types=" + types.getTypeId()
				+ ", articleVoice=" + articleVoice + ", articleRead=" + articleRead
				+ ", articleStatus=" + articleStatus + ", delTime=" + delTime + ", adminId=" + adminId + "]";
	}
}
